package com.woniuxy.main.mapper;

import com.woniuxy.main.pojo.Roles;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/*
 *
 *  @author zhc
 *  @create 2019-08-01 12:03
 */
@Repository
public interface RolesMapper {

    @Select("select * from roles where role_id=#{role_id}")
    Roles findById(int role_id);

    @Select("select * from roles where flag=0")
    List<Roles> findall();
}
